public class demo6 {

    public boolean isAnagram(String s, String t) {
        int s1 = s.length();
        int s2 = t.length();
        int num = 0;
        //2.建dp表
        boolean[] dp = new boolean[s2+1];
        //3.初始化
        if(s1 == 0)
            return false;
        if(s2 == 0)
            return true;
        for(int i = 0;i<s2;i++)
        {
            for(int j = 0;j<s1;j++){
                if(s.charAt(j) == t.charAt(i))
                {
                    dp[num++] = true;
                }
            }
        }
        return dp[s2-1];
    }
    public static void main(String[] args) {

    }
}
